package cn.yedong.pet.mapper;

import cn.yedong.pet.domain.Pet;
import cn.yedong.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yedong
 * @since 2023-02-13
 */
public interface PetMapper extends BaseMapper<Pet> {
    //商品下架
    void offSale(@Param("ids") List<Long> ids,@Param("date") Date date);
    //商品上架
    void updateOnsaleState(@Param("id") Long id, @Param("date") Date date);
//    void updateOnsaleState(@Param("id") Long id);//方法重载不影响xml映射
}
